/**
  * Author: Mei
  * Date: 2020-12-09 19:27
  * Description: for循环的特殊用法
  *
  */
#include <vector>
#include <iostream>
#include <bitset>
#include <algorithm>

using namespace std;

int main() {
    for (int i : {2, 3, 4, 7, 5, 6}) {
        cout << i << " ";
    }
    cout << endl;
    vector<int> v{2, 3, 5, 6, 7, 5, 4, 3};
    for (auto ret : v) {
        cout << ret << " ";
    }
    cout << endl;
    for (auto &ret : v) {
        cout << ret << " ";
    }


    return 0;
}